package com.itheima.d1_char_stream;

import java.io.FileWriter;
import java.io.IOException;
import java.io.Writer;

public class FileWriterTest3 {
    public static void main(String[] args) throws IOException {
        Writer fw=new FileWriter("C:\\Users\\dell\\IdeaProjects\\file-io-app\\io-app2\\src\\itheima03out.txt");

        fw.write('a');
        fw.write('b');
        fw.write('c');
        fw.write("\r\n");
        fw.write("我爱你中国");
        //一开始输出流是吧文件传输到缓冲区中，缓冲区输出就必须刷新流或者关闭流操作（关闭
        fw.flush();
    }
}
